home *** CD-ROM | disk | FTP | other *** search
- on getDrivePC
- set curpath to the moviePath
- set olddelimiter to the itemDelimiter
- set the itemDelimiter to "\"
- set drive to item 1 of curpath & "\"
- set the itemDelimiter to olddelimiter
- return drive
- end
-
- on getDriveMac
- set curpath to the moviePath
- set olddelimiter to the itemDelimiter
- set the itemDelimiter to ":"
- set drive to item 1 of curpath & ":"
- set the itemDelimiter to olddelimiter
- return drive
- end
-
- on checkFile
- global myFile
- set myFile to new(xtra("fileio"))
- set textName to the pathName & "browser.txt"
- openFile(myFile, textName, 0)
- if voidp(textName) then
- selectWeb()
- else
- delete(myFile)
- selectWeb()
- end if
- end
-
- on selectWeb
- global myFile
- set myFile to new(xtra("fileio"))
- set fileName to displayOpen(myFile)
- put fileName into field "browserSelect"
- set myFile to 0
- set myFile to new(xtra("fileio"))
- set textName to the pathName & "browser.txt"
- createFile(myFile, textName)
- set vWeb to field "browserSelect"
- openFile(myFile, textName, 0)
- writeString(myFile, vWeb)
- closeFile(myFile)
- set myFile to 0
- end
-